<style type="text/css">
#total_menu .sub_menu { width:180px; margin:0 0px 0px 0px; padding-left:0px; background-color:#38383f; border:0px solid #fff; letter-spacing:0px; clear:both; }
#total_menu .sub_menu ul { margin:0;padding:0;list-style:none; float:left; }
#total_menu .sub_menu ul li { margin:0; padding:0; width:180px; }
#total_menu .sub_menu ul li .group { text-indent: 20px; height:40px; line-height:40px; background-color:#6c7274; color:#fff; font:'15px gulim bold'; text-align:left;display:block;} 
#total_menu .sub_menu ul li .group a { text-indent: 20px; height:40px; line-height:40px; color:yellow; font-weight:bold; display:block;}
#total_menu .sub_menu ul li .group a:hover {text-indent: 20px; height:40px; line-height:40px; color:#fff; background-color:black; display:block;}
#total_menu .sub_menu ul li .menu a { display:block;overflow:hidden; color:white; padding:7px 0 7px 16px;
	-webkit-transition: all ease .1s;
	-o-transition: all ease .1s;
	-moz-transition: all ease .1s;
	-ms-transition: all ease .1s;
	transition: all ease .1s; }
#total_menu .sub_menu ul li .menu a:hover,#total_menu .sitemap ul li .menu a:focus {color:#fff; background-color:black; padding:7px 0 7px 16px;}
#total_menu .on a {color:#fff;font-weight:bold; background-color:red; padding:7px 0 7px 16px;}
#total_menu .sl { float:left; }
#total_menu .sub_menu .gag { clear:both; height:0px; line-height:1px; font-size:1px; }
</style>

<div id="total_menu">
<div class="sub_menu">
<?
for ($i=0; $i<$mw_groups_sitemap_count; $i++) {
    $mw_mmenus = mw_get_middle_menus($mw_groups_sitemap[$i][gr_id]);
    if ($i!=0) $sline = "class=\"sline\""; else $sline = "";
    echo "<ul $sline>\n";
    echo "<li><div class=\"group\"><a href=\"{$mw_groups_sitemap[$i][gr_url]}\">{$mw_groups_sitemap[$i][gr_subject]}</a></div></li>\n";
    for ($a=0; $a<sizeof($mw_mmenus); $a++) {
	$mw_smenus = mw_get_small_menus($mw_mmenus[$a][mm_id]);
	for ($j=0; $j<sizeof($mw_smenus); $j++) {
     
    if ($mw_smenus[$i][ms_id] == $mw_smenu[ms_id]) {
                $mw_smenus[$i][ms_name] = "<span class=select>{$mw_smenus[$i][ms_name]}</span>";
            }
            if ($mw_smenus[$i][ms_level_view] > $member[mb_level]) continue;          

	    echo "<li><div class=\"menu\"><a href=\"{$mw_smenus[$j][ms_url]}\">{$mw_smenus[$j][ms_name]}</a></div></li>\n";
	}
    }
    echo "</ul>\n";
    if (($i+1)%1==0) echo "<div class=gag>&nbsp;</div>";
}
?>
<div class="gag"></div>
</div><!-- sub_menu -->
</div><!-- total_menu -->